package com.example.demo.client.vm.sysbasequery;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import org.apache.ibatis.type.Alias;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * Description:
 *
 * @Author zmf
 * @Date 2018/12/11  17:14
 */
@ApiModel("资源类型")
@Alias("ResourceTypeVm")
public class ResourceTypeVm implements Serializable {
    private static final long serialVersionUID = 2862129612662105954L;
    @ApiModelProperty("资源ID")
    private Long id;
    @ApiModelProperty("资源名称")
    private String resourceName;
    @ApiModelProperty("是否动态资源")
    private Integer dynamic = 0;
    @ApiModelProperty("是否级联：0-否，1是")
    private Integer isCascade = 0;
    @ApiModelProperty("数据权限对应的操作权限")
    private String operationCode;
    @ApiModelProperty("数据权限对应的操作权限List")
    private List<Map<String, Object>> operationCodeList;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getResourceName() {
        return resourceName;
    }

    public void setResourceName(String resourceName) {
        this.resourceName = resourceName;
    }

    public Integer getDynamic() {
        return dynamic;
    }

    public void setDynamic(Integer dynamic) {
        this.dynamic = dynamic;
    }

    public Integer getIsCascade() {
        return isCascade;
    }

    public void setIsCascade(Integer isCascade) {
        this.isCascade = isCascade;
    }

    public String getOperationCode() {
        return operationCode;
    }

    public void setOperationCode(String operationCode) {
        this.operationCode = operationCode;
    }

    public List<Map<String, Object>> getOperationCodeList() {
        return operationCodeList;
    }

    public void setOperationCodeList(List<Map<String, Object>> operationCodeList) {
        this.operationCodeList = operationCodeList;
    }

    @Override
    public String toString() {
        return "ResourceTypeVm{" +
            "id=" + id +
            ", resourceName='" + resourceName + '\'' +
            ", dynamic=" + dynamic +
            ", isCascade=" + isCascade +
            ", operationCode='" + operationCode + '\'' +
            ", operationCodeList=" + operationCodeList +
            '}';
    }
}
